﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using FlightClient.FlightService;

namespace FlightClient
{

    public partial class Form1 : Form
    {
        static FlightService.IFlightService flightServiceObj = new FlightService.FlightServiceClient();

        public Form1()
        {
           InitializeComponent();
           IList<City> cities = flightServiceObj.GetCityList();
            foreach(City c in cities)
            {
              
                cityFromChoice.Items.Add(c);
            }
        }
        public override string ToString()
        {
            return base.ToString();
        }
        
        private void dateTimePicker1_ValueChanged(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void dateTimePicker2_ValueChanged(object sender, EventArgs e)
        {

        }

        private void timeLabel_Click(object sender, EventArgs e)
        {

        }

        private void cityFromLabel_Click(object sender, EventArgs e)
        {

        }

        private void userSettingsGroupBox_Enter(object sender, EventArgs e)
        {

        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void cityFromChoice_SelectedIndexChanged(object sender, EventArgs e)
        {

        }
    }
}
